﻿<%@ Page Title="" Language="C#" MasterPageFile="~/followerpart/followermaster.master" AutoEventWireup="true" CodeFile="Periodicalist.aspx.cs" Inherits="Periodicalist" meta:resourcekey="PageResource1"%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>المجلات والصحف</title>
<style>
 tr .tabbone4{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:right;
	
}
.adel4{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  right;
}
         .zr3 {
	background-image:url('../images/button2.png');
	display:block;
	float:right;
	 padding: 0px 10px 0px 10px;
	height:21px;
	text-align:center;
	color:#fff;
	text-shadow:1px 1px 0px #003a5e;
	margin-right:2px;
	line-height:19px;
	font-weight:bold;
	text-decoration:none;
	font-family:Tahoma;
	font-size:12px;


}
.zr3:hover ,.zr3:active {
	background-image:url('../images/button2.png');
	text-shadow:1px 1px 0px #003a5e;
	background-position:0px -21px;
	
}
  .stylelabel3
       {
       	color:#064c66;
	 font-weight:bold;
	 direction:rtl;
	 text-align:right;
       	}
             .tab3{
	width:815px;
 direction:rtl;
 border:1px #ccc solid;
 border-radius:5px;
 }

tr .tabbone3{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:center;
	
}
 .req3
       {
           color:Red;
       } 
.adel3{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  center;
}
.he3{
	background-color:#fff;
	padding:5px;
	font-family:Tahoma;
	font-size:14px;
	font-weight:bold;
}
.txt3
{
    border:1px solid black;
    }
        .jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 800px;
    
    background-color: #EEE;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}

        .lok
     {
	display: none;
	color: red;
     }
       

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
    <ContentTemplate>
    <br />
    <table class="tab3">
    <tr >
    <td class="he3" colspan="2">
        <asp:Label ID="filter" runat="server"  
            meta:resourceKey="filter" Text="فلترة" />
    </td>
    </tr>
    <tr >
    <td class="tabbone3">

        <asp:Label ID="Label17" runat="server" Text="الكتاب او الدورية" meta:resourcekey="PeriodicalName"></asp:Label>

    </td>
    <td class="tabbone3">
        <asp:Label ID="Label16" runat="server" Text="تم الاستلام" meta:resourcekey="recievesearch"></asp:Label>
    </td>
    </tr>
    <tr>
    <td class="adel3">
        <asp:TextBox  ID="searchfield" runat="server" AutoPostBack="true" 
            CausesValidation="True" CssClass="txt3" ontextchanged="searchfield_TextChanged"></asp:TextBox>
        <asp:AutoCompleteExtender ID="To_AutoCompleteExtender" runat="server" 
            ContextKey="product" Enabled="True" MinimumPrefixLength="1" 
            ServiceMethod="GetACTList" ServicePath="~/SelectMail.asmx" 
            TargetControlID="searchfield" UseContextKey="true">
        </asp:AutoCompleteExtender>
    </td>
     <td class="adel3">
     <asp:RadioButtonList ID="RadioButtonList1" runat="server" TextAlign="Right" 
                    AutoPostBack="true" 
                    onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" >
                  
                    <asp:ListItem style="float:right" Text="تم الاستلام" Value="1" meta:resourceKey="receive"></asp:ListItem>
                    <asp:ListItem style="float:right"  Text="لم يتم الاستلام" Value="0" meta:resourceKey="noreceive" ></asp:ListItem>
                </asp:RadioButtonList>
    </td>
    </tr>
    </table>


      <table  dir="rtl">
<tr>
    
<br />

<td >             
    <asp:GridView ID="GridView1" runat="server" 
        AutoGenerateColumns="False"
                    DataSourceID="SqlDataSource1"
                     OnRowCreated="GridView1_RowCreated"
                    AllowPaging="True" onrowdatabound="GridView1_RowDataBound" 
        EnableModelValidation="True" GridLines="None">
                    <PagerSettings FirstPageText="الاولى" LastPageText="الاخيرة"
                        NextPageText="التالى" PreviousPageText="السابق" />
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                    <table class="tab3" >
                                        <tr class="tabbone3">
                                            <td  style="width:100px">
                                                <asp:Label ID="lblendofsubs" runat="server" Text="الكتاب/الدورية" meta:resourceKey="lblendofsubs"
                                                     />
                                            </td>
                                           
                                            
                                            <td style="width:100px">
                                                <asp:Label ID="lblpaidfees" runat="server" Text="النشر والتوزيع" meta:resourceKey="lblpaidfees"
                                                     />
                                            </td>
                                           
                                            <td style="width:50px">
                                                <asp:Label ID="Label7" runat="server" Text="النوع" meta:resourceKey="lbltype"
                                                     />
                                            </td>
                                            <td style="width:200px">
                                                <asp:Label ID="lblissn" runat="server" Text="الرقم التعريفى" meta:resourceKey="lblissn"
                                                     /></td>
                                                     <td style="width:100px">
                                                <asp:Label ID="lblstops" runat="server" Text="بداية الاشتراك" meta:resourceKey="lblstop"  />
                                            </td>
                                            <td style="width:100px">
                                                <asp:Label ID="lbltopic" runat="server" Text="نهاية الاشتراك" meta:resourceKey="lbltopic"
                                                     />
                                            </td>
                                            <td style="width:50px">
                                                <asp:Label ID="lblstartofsubs" runat="server" Text="عدد النسخ" meta:resourceKey="lblstartofsubs"
                                                   />
                                            </td>
                                           <td style="width:50px">
                                                <asp:Label ID="ll" runat="server" Text="قيمة النسخة" meta:resourceKey="ll"
                                                     />
                                            </td>
                                            
                                            <td style="width:50px">
                                                 <asp:Label ID="Label10" runat="server" Text="الاشتراك سارى؟" meta:resourceKey="lblshow" />
                                            </td>
                                        </tr>
                                    </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table class="tab3">
                                    <tr class="adel3">
                                        <td style="width:100px">
                                            <asp:Label  ID="Label11" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("product"))) %>'
                                                 />
                                        </td>
                                        
                                        <td style="width:100px">
                                            <asp:Label  ID="paidfees" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("publisher"))) %>'
                                                 />
                                        </td>
                                        
                                        <td style="width:50px">
                                            <asp:Label  ID="Label12" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("product_type"))) %>'
                                                 />
                                        </td>
                                        <td style="width:200px">
                                            <asp:Label  ID="Label13" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("issn"))) %>'
                                                 />
                                        </td>
                                        <td style="width:100px">
                                            <asp:Label  ID="Label10" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("startdate"))) %>'
                                                 />
                                        </td>
                                        <td style="width:100px">
                                            <asp:Label  ID="startofsub" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("enddate"))) %>'
                                                 />
                                        </td>
                                        <td style="width:50px">
                                            <asp:Label  ID="Label15" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("copyno"))) %>'
                                                 />
                                        </td>
                                       <td style="width:50px">
                                            <asp:Label  ID="Label1" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("copyprice"))) %>'
                                                 />
                                        </td>
                                        <td style="width:50px">
                               <asp:CheckBox runat="server" ID="chkAdd" Enabled="false" ToolTip='<%# String.Format("{0} ", Eval("enddate")) %>' ></asp:CheckBox> 
                                        
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                   
                        
                    </Columns>
                </asp:GridView>
   </td>
</tr>
<%--<tr>
<td>   --%>          
 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="select p.*,t.product_type,tt.* from product_types t INNER JOIN products p  ON (t.id = p.product_type_id) INNER JOIN company_product tt ON (tt.product_id = p.id)where tt.company_id=@myid " >
                    <SelectParameters>
         <asp:SessionParameter Name="myid" SessionField="company_id" />
     </SelectParameters>
                </asp:SqlDataSource>
                

</table>
</ContentTemplate>
    </asp:UpdatePanel>
    <%--<table>
    
    <tr>
<td align="center">  
    <asp:Button  ID="save" CssClass="zr3" runat="server" Text="حفظ"  meta:resourceKey="lblsave" onclick="save_Click" /> 
      
    
               
    
               </td>
               
</tr>
</table>--%>
</asp:Content>

